import http from "@/utils/request";

export default{
    /**
     * 查询列表
     * @param  params 
     * @returns 
     */
    async getzgrwList(pageNo,pageSize, approveStatus, startDate, endDate){
        return await http.get("/api/zgrwqd/list",{pageNo,pageSize, approveStatus, startDate, endDate});
    },
    /**
    * 添加
    * @returns
    */
    async addzgrw(params){
        return await http.post("/api/zgrwqd/add",params);
    },
    /**
    * 修改
    * @returns
    */
    async updatezgrw(params){
        return await http.put("/api/zgrwqd/update",params);
    },

    // 上传文件
    async importExcel(myfile) {
        console.log(29999999);
        console.log(myfile.get("myfile"));

        return await http.upload("/api/fileAbout/fileUpload", {myfile});
    },
    // 导入文件
    async batchImportExcel(filePath) {
        console.log(typeof(filePath));
        console.log(filePath.get("filePath"));
        return await http.upload("/api/zgrwqd/batchInput", {filePath});
    }
}